package com.yunchang.springboot.mapper.base;

import com.yunchang.springboot.models.log.BaseMwsReportLogDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author sjd
 * @since 2020-08-19
 */
public interface IBaseMwsReportLogMapper extends BaseMapper<BaseMwsReportLogDO> {
    /**
     * 根据ReportInfoId获得对应的日志记录
     *
     * @param reportInfoId
     * @return
     */
    List<BaseMwsReportLogDO> getMwsReportLogByReportInfoId(@Param("reportInfoId") Integer reportInfoId);

    BaseMwsReportLogDO getLatestDataInScope(@Param("reportInfoId") Integer reportInfoId,
                                            @Param("sellerId") String sellerId,
                                            @Param("countryCode") String countryCode,
                                            @Param("reportType") String reportType,
                                            @Param("timeScope")String timeScope,
                                            @Param("startDate")String startDate,
                                            @Param("endDate")String endDate,
                                            @Param("modifyTime")String modifyTime);
}
